﻿namespace WomanMotion.WebApi.Api.Utility
{
    /// <summary>
    /// api统一返回模板
    /// </summary>
    public class SwaggerResultTemplate
    {
        /// <summary>
        /// 返回状态码 1成功  0失败
        /// </summary>
        public int Code { get; set; }
        /// <summary>
        /// 返回消息
        /// </summary>
        public string Msg { get; set; }
    }
    /// <summary>
    /// api统一返回模板
    /// </summary>
    /// <typeparam name="T">响应数据体</typeparam>
    public class SwaggerResultTemplate<T>: SwaggerResultTemplate
    {
        /// <summary>
        /// 响应数据体
        /// </summary>
        public T Data { get; set; }
    }
}
